package com.zys.hotel_management.mapper;

import com.zys.hotel_management.entity.Room;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper {
    void insert(Room room);

    void update(Room room);

    void delete(Integer roomId);

    Room findById(Integer roomId);

    List<Room> findAll();

    List<Room> findAvailableRooms(String roomType);

    void updateStatus(Integer roomId, String status);
}
